package pqt;

public class BaseDeDatos {
	
	private static BaseDeDatos instance;
	private String nombre = "";
	
	private BaseDeDatos() {
		
		
	}
	
	public static BaseDeDatos getInstance() {
		
		if(instance==null) {
			instance = new BaseDeDatos();
		}
		
		return instance;
	}
	
	public void setName(String name) {
		
		nombre = name;
		
	}
	
	public void getName(){
		System.out.println(nombre);
	}

}
